<?php

Raise::load('core.RaiseObject');
Raise::load('core.collection.RaiseTypedCollection');
Raise::load('core.structure.RaiseGridCell');

/**
 * RaiseGrid class
 * A grid structure containing grid cells
 *
 * @author Sam-Mauris Yong / hellclanner at live dot com
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package phpraise.core.structure
 * @since 1.2
 */
class RaiseGrid extends RaiseObject {
    
    /**
     * All the cells of this grid
     * @var RaiseTypedCollection
     */
    private $cells;
    
    /**
     * Create a new RaiseGrid
     */
    public function __construct(){
        $this->cells = new RaiseTypedCollection('RaiseGridCell');
    }
    
    /**
     * Get a collection of all the cells of this grid
     * @return RaiseTypedCollection
     */
    public function cells(){
        return $this->cells;
    }
    
}